extern double g;